FROM nimmis/java-centos
run mkdir /root/alphaServer
copy alpha-server-0.4.0-exec.jar /root/alphaServer
copy runAlphaServer.sh /root/alphaServer
copy plugins /root/alphaServer/plugins
expose 7080
expose 6090
env alpha_home=/root/alphaServer
env PATH=$alpha_home:$PATH
run chmod +x /root/alphaServer/runAlphaServer.sh
run chown 777 /root/alphaServer/alpha-server-0.4.0-exec.jar
entrypoint ["sh","runAlphaServer.sh"]